<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./plantilla.xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core">

    <ui:define name="content">
        <h:outputText value="#{i18n.usuarioclaveinvalido}" rendered="#{param.login_error==true}" />
        <h:form id="loginForm">
            <h:message for="loginForm"/>
            <h:panelGrid columns="3">
                <h:outputText value="#{i18n.usuario}"/>
                <h:inputText id="usuario" value="#{login.j_username}"/>
                <h:message for="usuario"/>
                <h:outputText value="#{i18n.clave}"/>
                <h:inputSecret id="clave" value="#{login.j_password}"/>
                <h:message for="clave"/>
            </h:panelGrid>
            <h:commandButton value="#{i18n.login}" action="#{login.logarse}">
                <f:ajax  render="loginForm" execute="@form" />
            </h:commandButton>
        </h:form>
    </ui:define>

</ui:composition>
